const userRoutes = [
  {
    name: 'dashboard',
    path: '/dashboard',
    id: 1000,
    parent_id: 0,
    meta: {
      title: '儀表盤',
      icon: 'IconCode',
      affix: true,
      layout: true,
      hidden: false
    },
    component: 'dashboard/index'
  },
  {
    name: 'adminList',
    path: '/adminList',
    id: 2000,
    parent_id: 0,
    meta: {
      title: '管理員列表',
      icon: 'IconCode',
      layout: true,
      hidden: false
    },
    component: 'adminList/index'
  },
  {
    name: 'registration',
    path: '/registration',
    id: 3000,
    parent_id: 0,
    meta: {
      title: '報名管理',
      icon: 'IconCode',
      layout: true,
      hidden: false
    },
    component: 'registration/index'
  },
  {
    name: 'userGroup',
    path: '/userGroup',
    id: 4000,
    parent_id: 0,
    meta: {
      title: '用戶分組管理',
      icon: 'IconCode',
      layout: true,
      hidden: false
    },
    component: 'userGroup/index'
  },
  {
    name: 'notifications',
    path: '/notifications',
    id: 6000,
    parent_id: 0,
    meta: {
      title: '通知管理',
      icon: 'IconCode',
      layout: true,
      hidden: false
    },
    component: 'notifications/index'
  },
  {
    name: 'tournament',
    path: '/tournament',
    id: 7000,
    parent_id: 0,
    meta: {
      title: '賽事管理',
      icon: 'IconCode',
      layout: true,
      hidden: false
    },
    component: 'tournament/index'
  },
  {
    name: 'config',
    path: '/config',
    id: 5000,
    parent_id: 0,
    meta: {
      title: '配置管理',
      icon: 'IconCode',
      layout: true,
      hidden: false
    },
    redirect: '/config/banner',
    children: [
      {
        name: 'config/banner',
        path: '/config/banner',
        id: 5100,
        parent_id: 5000,
        meta: {
          title: '輪播圖管理',
          icon: 'IconCode',
          layout: true,
          hidden: false
        },
        component: 'config/banner'
      },
      {
        name: 'config/news',
        path: '/config/news',
        id: 5200,
        parent_id: 5000,
        meta: {
          title: '資訊管理',
          icon: 'IconCode',
          layout: true,
          hidden: false
        },
        component: 'config/news'
      }
    ]
  }
]

export default userRoutes
